<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

///////////////////////// BACKEND - ADMIN /////////////////////////
$route[ADMIN_FOLDER_WSLASH] = 'admin/home/index';
//page
$route[ADMIN_FOLDER . PAGE_SLUG]                             = 'admin/page/index';
$route[ADMIN_FOLDER . PAGE_SLUG . '/([a-z0-9-]+)/cap-nhat']  = 'admin/page/update/$1';
$route[ADMIN_FOLDER . PAGE_SLUG . '/them-moi']               = 'admin/page/insert';
$route[ADMIN_FOLDER . PAGE_SLUG . '/cap-nhat/do']            = 'admin/page/doUpdate';
$route[ADMIN_FOLDER . PAGE_SLUG . '/them-moi/do']            = 'admin/page/doInsert';
//advertise
$route[ADMIN_FOLDER . ADVERTISE_SLUG]                              = 'admin/advertise/index';
$route[ADMIN_FOLDER . ADVERTISE_SLUG . '/([0-9-]+)']               = 'admin/advertise/get/$1';
$route[ADMIN_FOLDER . ADVERTISE_SLUG . '/them-moi']                = 'admin/advertise/insert';
$route[ADMIN_FOLDER . ADVERTISE_SLUG . '/cap-nhat/do']             = 'admin/advertise/doUpdate';
$route[ADMIN_FOLDER . ADVERTISE_SLUG . '/them-moi/do']             = 'admin/advertise/doInsert';
$route[ADMIN_FOLDER . ADVERTISE_SLUG . '/dang-ki/cap-nhat']        = 'admin/advertise/doTempRegisterUpdate';
$route[UPLOAD_FOLDER_URL.ADVERTISE_FOLDER_URL.'([a-z0-9-_]+).zip'] = 'admin/advertise/getAdvertiseUpload/$1.zip/zip';
$route[UPLOAD_FOLDER_URL.ADVERTISE_FOLDER_URL.'([a-z0-9-_]+).rar'] = 'admin/advertise/getAdvertiseUpload/$1.rar/rar';
//post
$route[ADMIN_FOLDER . POST_SLUG]                               = 'admin/post/index';
$route[ADMIN_FOLDER . POST_SLUG . '/' . PAGING_SLUG]           = 'admin/post/index/$1';
$route[ADMIN_FOLDER . POST_SLUG . '/them']                     = 'admin/post/insert';
$route[ADMIN_FOLDER . POST_SLUG . '/them-moi']                 = 'admin/post/doInsert';
$route[ADMIN_FOLDER . POST_SLUG . '/([a-z0-9-]+)']             = 'admin/post/get/$1';
$route[ADMIN_FOLDER . POST_SLUG . '/cap-nhat']                 = 'admin/post/doUpdate';
$route[ADMIN_FOLDER . POST_SLUG . '/tim-kiem']                 = 'admin/post/search';
$route[ADMIN_FOLDER . POST_SLUG . '/tim-kiem/' . PAGING_SLUG]  = 'admin/post/search/$1';
//post category
$route[ADMIN_FOLDER . POST_SLUG . '/' . CATEGORY_SLUG]                             = 'admin/post_cate/index';
$route[ADMIN_FOLDER . POST_SLUG . '/' . CATEGORY_SLUG . '/([a-z0-9-]+)']           = 'admin/post_cate/update/$1';
$route[ADMIN_FOLDER . POST_SLUG . '/' . CATEGORY_SLUG . '/' . INSERT_SLUG]         = 'admin/post_cate/insert';
$route[ADMIN_FOLDER . POST_SLUG . '/' . CATEGORY_SLUG . '/' . UPDATE_SLUG . '/do'] = 'admin/post_cate/doUpdate';
$route[ADMIN_FOLDER . POST_SLUG . '/' . CATEGORY_SLUG . '/' . INSERT_SLUG . '/do'] = 'admin/post_cate/doInsert';
//category of product, main catogory in home
$route[ADMIN_FOLDER . CATEGORY_SLUG]                         = 'admin/category/index';
$route[ADMIN_FOLDER . CATEGORY_SLUG . '/([a-z0-9-]+)']       = 'admin/category/get/$1';
$route[ADMIN_FOLDER . CATEGORY_SLUG . '/'.UPDATE_SLUG.'/do'] = 'admin/category/doUpdate';
$route[ADMIN_FOLDER . CATEGORY_SLUG . '/'.INSERT_SLUG]       = 'admin/category/insert';
$route[ADMIN_FOLDER . CATEGORY_SLUG . '/'.INSERT_SLUG.'/do'] = 'admin/category/doInsert';
//shop
$route[ADMIN_FOLDER . SHOP_SLUG]                           = 'admin/shop/index';
$route[ADMIN_FOLDER . SHOP_SLUG . '/' . PAGING_SLUG]       = 'admin/shop/index/$1';
$route[ADMIN_FOLDER . SHOP_SLUG . '/cap-nhat-trang-thai']  = 'admin/shop/changeStatus';
$route[ADMIN_FOLDER . SHOP_SLUG . '/cap-nhat-so-san-pham'] = 'admin/shop/changeBlockProductNum';
$route[ADMIN_FOLDER . SHOP_SLUG . '/dang-ki-moi']          = 'admin/shop/newRegister';
$route[ADMIN_FOLDER . SHOP_SLUG . '/kich-hoat']            = 'admin/shop/acceptShopRegister';
$route[ADMIN_FOLDER . SHOP_SLUG . '/tim-kiem']             = 'admin/shop/search';
//shop order
$route[ADMIN_FOLDER . ORDER_SLUG]                                      = 'admin/order/index';
$route[ADMIN_FOLDER . ORDER_SLUG . '/' . PAGING_SLUG]                  = 'admin/order/index/$1';
$route[ADMIN_FOLDER . ORDER_SLUG . '/tim-kiem']                        = 'admin/order/search';
$route[ADMIN_FOLDER . ORDER_SLUG . '/tim-kiem/' . PAGING_SLUG]         = 'admin/order/search/$1';
$route[ADMIN_FOLDER . ORDER_SLUG . '/([a-z0-9-]+)']                    = 'admin/order/getShopOrder/$1/1';
$route[ADMIN_FOLDER . ORDER_SLUG . '/([a-z0-9-]+)/' . PAGING_SLUG]     = 'admin/order/getShopOrder/$1/$2';
$route[ADMIN_FOLDER . ORDER_SLUG . '-([a-z0-9-]+)']                    = 'admin/order/get/$1';
//product
$route[ADMIN_FOLDER . PRODUCT_SLUG]                                  = 'admin/product/index';
$route[ADMIN_FOLDER . PRODUCT_SLUG . '/' . PAGING_SLUG]              = 'admin/product/index/$1';
$route[ADMIN_FOLDER . PRODUCT_SLUG . '/tim-kiem']                    = 'admin/product/search';
$route[ADMIN_FOLDER . PRODUCT_SLUG . '/tim-kiem/' . PAGING_SLUG]     = 'admin/product/search/$1';
$route[ADMIN_FOLDER . PRODUCT_SLUG . '/cap-nhat-nhanh']              = 'admin/product/flashUpdate';
$route[ADMIN_FOLDER . PRODUCT_SLUG . '/p/([a-z0-9-]+)']              = 'admin/product/get/$1';
$route[ADMIN_FOLDER . PRODUCT_SLUG . '/' . UPDATE_SLUG]              = 'admin/product/fullUpdate';
//packet
$route[ADMIN_FOLDER . PRODUCT_PACKET_SLUG]                           = 'admin/packet/index';
$route[ADMIN_FOLDER . PRODUCT_PACKET_SLUG . '/them-moi']             = 'admin/packet/insert';
$route[ADMIN_FOLDER . PRODUCT_PACKET_SLUG . '/cap-nhat']             = 'admin/packet/update';
$route[ADMIN_FOLDER . PRODUCT_PACKET_SLUG . '/dang-ki-moi']          = 'admin/packet/register';
$route[ADMIN_FOLDER . PRODUCT_PACKET_SLUG . '/dang-ki-moi/them']     = 'admin/packet/insertRegister';
$route[ADMIN_FOLDER . PRODUCT_PACKET_SLUG . '/dang-ki-moi/cap-nhat'] = 'admin/packet/updateRegister';
$route[ADMIN_FOLDER . PRODUCT_PACKET_SLUG . '/dang-ki-moi/xac-nhan'] = 'admin/packet/acceptRegister';
//rao vat
$route[ADMIN_FOLDER . RAOVAT_SLUG]                                                   = 'admin/raovat/index';
$route[ADMIN_FOLDER . RAOVAT_SLUG . '/' . PAGING_SLUG]                               = 'admin/raovat/index/$1';
$route[ADMIN_FOLDER . RAOVAT_SLUG . '/([a-z0-9-]+)']                                 = 'admin/raovat/get/$1';
$route[ADMIN_FOLDER . RAOVAT_SLUG . '/them']                                         = 'admin/raovat/insert';
$route[ADMIN_FOLDER . RAOVAT_SLUG . '/them-moi']                                     = 'admin/raovat/doInsert';
$route[ADMIN_FOLDER . RAOVAT_SLUG . '/cap-nhat']                                     = 'admin/raovat/doUpdate';
$route[ADMIN_FOLDER . RAOVAT_SLUG . '/tim-kiem']                                     = 'admin/raovat/search';
$route[ADMIN_FOLDER . RAOVAT_SLUG . '/tim-kiem/' . PAGING_SLUG]                      = 'admin/raovat/search/$1';
$route[ADMIN_FOLDER . RAOVAT_SLUG . '/'.RAOVAT_HIGHLIGHT_SLUG]                       = 'admin/raovat/getHighlight';
$route[ADMIN_FOLDER . RAOVAT_SLUG . '/'.RAOVAT_HIGHLIGHT_SLUG.'/' . PAGING_SLUG]     = 'admin/raovat/getHighlight/$1';
//contact
$route[ADMIN_FOLDER . CONTACT_SLUG]                     = 'user/contact/index';
$route[ADMIN_FOLDER . CONTACT_SLUG . '/' . PAGING_SLUG] = 'user/contact/index/$1';
$route[ADMIN_FOLDER . CONTACT_SLUG . '-([0-9]+)']       = 'user/contact/get/$1';
$route[ADMIN_FOLDER . CONTACT_SLUG . '/thay-doi']       = 'user/contact/changeStatus';
//user
$route[ADMIN_FOLDER . USER_SLUG]                               = 'admin/user/index';
$route[ADMIN_FOLDER . USER_SLUG . '/' . PAGING_SLUG]           = 'admin/user/index/$1';
$route[ADMIN_FOLDER . USER_SLUG . '/them']                     = 'admin/user/newIndex';
$route[ADMIN_FOLDER . USER_SLUG . '/them/do']                  = 'admin/user/newSubmit';
$route[ADMIN_FOLDER . USER_SLUG . '/dat-lai-mk']               = 'admin/user/resetUserPassword';
$route[ADMIN_FOLDER . USER_SLUG . '/cap-nhat']                 = 'admin/user/updateIndex';
$route[ADMIN_FOLDER . USER_SLUG . '/cap-nhat/do']              = 'admin/user/updateSubmit';
$route[ADMIN_FOLDER . USER_SLUG . '/cap-nhat/trang-thai']      = 'admin/user/updateStateSubmit';
$route[ADMIN_FOLDER . USER_SLUG . '/tim-kiem']                 = 'admin/user/search';
$route[ADMIN_FOLDER . USER_SLUG . '/tim-kiem/' . PAGING_SLUG]  = 'admin/user/search/$1';
///////////////////////////////////////////////////////////